php forum
php mysql forum
php mysql smarty
 
Topic Options
#203170 - 05/12/04 01:08 PM [6.6 - 6.7] [beta] JavaScript Dropdown Boxes
CTM Offline
Moderator / Da Masta

Registered: 11/23/01
Posts: 2567
Modification Name: JavaScript Dropdown Boxes

Author(s): CTM

Description: Uses JavaScript to automatically redirect the user to the option he or she selected in the "Hop To" and "Show Topics From" dropdown boxes on the forum and topic pages (making the Go! buttons redundant), but if the user doesn't have JavaScript enabled, the Go! buttons can still be used.

Requirements: UBB.classic 6.6.0 or higher

Download Link: Contact privately

This is the logical successor of my JavaScript "Hop To" Box mod for 6.3, but this version gives instructions for doing the same to the DaysPrune box on forum pages. If I find any other dropdowns to add to the list, I'll update this mod with further instructions. Likewise, if you find any I haven't covered, please let me know and I'll add them. smile

Top
#203171 - 05/12/04 01:10 PM Re: [6.6 - 6.7] [beta] JavaScript Dropdown Boxes
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Code:
Undefined subroutine &UBB::LIB::PostCountRestriction called at ubb_lib_pntf.cgi line 114, <xxZWAUcWJydKHpJT> line 1.
laugh best hack ever

Top
#203172 - 05/12/04 01:12 PM Re: [6.6 - 6.7] [beta] JavaScript Dropdown Boxes
CTM Offline
Moderator / Da Masta

Registered: 11/23/01
Posts: 2567
I'm assuming that's on my test board?

(Psst... Does that happen all the time? tipsy )

Top
#203173 - 05/12/04 01:17 PM Re: [6.6 - 6.7] [beta] JavaScript Dropdown Boxes
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Yes, it's your board, and no, sometimes it puts a different string between < and > tipsy

Top
#203174 - 05/12/04 01:18 PM Re: [6.6 - 6.7] [beta] JavaScript Dropdown Boxes
CTM Offline
Moderator / Da Masta

Registered: 11/23/01
Posts: 2567
Time for me to post an update for PCRF, then, I guess... I don't want that happening to other peoples' boards... tipsy

Top
#203175 - 05/12/04 01:25 PM Re: [6.6 - 6.7] [beta] JavaScript Dropdown Boxes
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
update: only happens when logged out. Don't get the error as an Admin

Top
#203176 - 05/12/04 01:41 PM Re: [6.6 - 6.7] [beta] JavaScript Dropdown Boxes
CTM Offline
Moderator / Da Masta

Registered: 11/23/01
Posts: 2567
Fixed, updated, reuploaded; thanks Ian smile

As a sidenote, anyone reading this topic who is using PCRF v3.0.0 should upgrade to v3.0.1 as soon as is humanly possible.

Top
#203177 - 05/12/04 07:12 PM Re: [6.6 - 6.7] [beta] JavaScript Dropdown Boxes
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
Nice mod, now to get rid of that pesky go button :x...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#203178 - 05/13/04 05:02 PM Re: [6.6 - 6.7] [beta] JavaScript Dropdown Boxes
CTM Offline
Moderator / Da Masta

Registered: 11/23/01
Posts: 2567
Actually it's not worth getting rid of the "Go!" button, since it still needs to be used to hop back to the active forum (onchange won't work any other way)...

Top
#203179 - 05/13/04 05:12 PM Re: [6.6 - 6.7] [beta] JavaScript Dropdown Boxes
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
Hmm, I seem to remember a javascript transision code for dropdowns that didn't require a button at all smirk
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#203180 - 12/04/05 01:32 PM Re: [6.6 - 6.7] [beta] JavaScript Dropdown Boxes
mb Offline
Member

Registered: 02/28/00
Posts: 35
Hmm, I was hoping this would eliminate the Go button. This doesn't seem to do that, and it looks from what I read that I shouldn't want to eliminate the Go button anyway! Without eliminating the Go button, this code is really just an alternate way to replicate the drop down, but there's no other change, right?

I'd love to have a hop menu that always started with Select a Forum, so you would have to change to something else, but didn't have the Go button...

Top
#203181 - 12/04/05 11:17 PM Re: [6.6 - 6.7] [beta] JavaScript Dropdown Boxes
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
I'd have a plethora of users who accidently choose the wrong forum without having the opportunity to select one then "go" to it smile To each his own tho, my users are a little less internet savvy.
_________________________
- Allen wavey
- What Drives You?

Top
#203182 - 12/04/05 11:39 PM Re: [6.6 - 6.7] [beta] JavaScript Dropdown Boxes
mb Offline
Member

Registered: 02/28/00
Posts: 35
I hear you Allen. It wouldn't be my choice. I've already had this discussion - the users aren't that savvy. smile

Next question -- suppose I wanted to put this menu in the html insert??? I hadn't connected that would be a challenge once I figured out how to make it work! They want it to go in their left nav...

Top
#203183 - 12/06/05 07:14 PM Re: [6.6 - 6.7] [beta] JavaScript Dropdown Boxes
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Sure, you could always hard/hand-code a drop-down menu smile
_________________________
- Allen wavey
- What Drives You?

Top



Moderator:  Charles, Gizmo 
Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks